package ooday02;

public class Dog extends Animals implements inter{
    Dog(String name,String color,int age)
    {
        super(name,color,age);
    }
    Dog(){}
    void eat()
    {
        System.out.println(name+"狗狗"+"eat bone");
    }
    void lookHome()
    {
        System.out.println(name+"狗狗"+"look home");
    }
    public void swim()
    {
        System.out.println(name+"swimming");
    }
}
